function doubleLabel(){
    var row = $('#areas').parent().parent().clone()[0];
    row.children[0].children[0].innerText = 'Specialty:';
    var elem = row.children[1].children[0];
    var elem2 = row.children[1].children[1];
    var specialities = row.children[1].children[2];
    var specialitiesValue = $('#areas')[0].parentNode.parentNode.children[1].children[2].value;
    var elem3 = row.children[1].children[3];
    elem.parentNode.removeChild(elem);
    elem2.parentNode.removeChild(elem2);
    elem3.parentNode.removeChild(elem3);
    $('#areas').parent().parent().after(row);
    $($('#areas')[0].parentNode.parentNode.children[1].children[2]).remove()
    specialities.value = specialitiesValue;
    areasTemp = specialities;
}

$(document).ready(function(){
    doubleLabel();
    if($("#addressCountry").val() != ''){
        $("#country option").filter(function() {
            return $(this).text() == $("#addressCountry").val();
        }).attr('selected', true);
        $('#country')[0].onchange();
    }
});

function removeCities(){
    $("#cities").parent().parent().remove();
}

function generateURLWindow(url){
    popupCaller(url);
}